<?php
/**
 * 文章属性表
 */
namespace haibao\app\model\data;

class ArticleProperty extends Base{

	//点击来源
	const FROM_TYPE_APP = 1;
	const FROM_TYPE_WAP = 2;
	const FROM_TYPE_PC = 3;
	const FROM_TYPE_PUSH = 4;
    
    /**
     * 文章ID
     */
    public $ArticleId;
    
    /**
     * 点击数量
     */
    public $ClickNum;
    
    /**
     * App点击数量
     */
    public $AppClickNum;
    
    /**
     * 评论数量
     */
    public $CommentNum;
    
    /**
     * 投票数量
     */
    public $VoteNum;
    
    /**
     * 分享数量
     */
    public $ShareNum;
    
    /**
     * 点赞数量
     */
    public $PraiseNum;
    
    /**
     * 手机站点击量
     */
    public $WapClickNum;
    
    /**
     * PC点击量
     */
    public $PcClickNum;
    
    /**
     * 远程推送点击量
     */
    public $PushClickNum;
    
    /**
     * __construct()
     */
    public function __construct(){
        parent::__construct();
        
        $this->intField('ArticleId', 'ArticleId', true);
        $this->intField('ClickNum', 'ClickNum');
        $this->intField('AppClickNum', 'AppClickNum');
        $this->intField('CommentNum', 'CommentNum');
        $this->intField('VoteNum', 'VoteNum');
        $this->intField('ShareNum', 'ShareNum');
        $this->intField('PraiseNum', 'PraiseNum');
        $this->intField('PcClickNum', 'PcClickNum');
        $this->intField('WapClickNum', 'WapClickNum');
        $this->intField('PushClickNum', 'PushClickNum');
        
        $this->setTableName('ArticleProperty');
    }
}